//
//  Circle.h
//  Project5
//
//  Created by Nguyen Tan Loc on 5/18/13.
//  Copyright (c) 2013 Nguyen Tan Loc. All rights reserved.
//

#import "CCNode.h"
#import "CircleRound.h"
#import "Bullet.h"
#import "LevelConfig.h"

@interface Circle : NSObject
{
    NSMutableArray *m_ArrRound;
    CGPoint m_Position;
    float m_Radius;
    float m_Speed;
    float m_Angle;
    BOOL  m_IsDestroy;
    int   m_CIID;  // Circle indicator ID
}

@property (readonly) int _CIID;
@property (readonly) BOOL _isDestroy;

-(id) initWithRadius:(float)r angle:(float)a;
-(void) addSpriteToBatch:(CCSpriteBatchNode *)batch;
-(void) addRoundWithRadius:(float)r rotationSpeed:(float)s listSegment:(NSArray *)listSegment;
-(void) appear;
-(void) setPosition:(CGPoint)p;
-(void) setRotationSpeed:(float)speed;
-(void) setCIID:(int)i;
-(void) stopRotation;
-(BOOL) checkCollideWithBullet:(Bullet *)b;

-(void) update:(ccTime)t;

@end
